package thread;
/**
 * @author SWJ
 * @create 2021-06-24 16:12
 * 本类用于测试反射
 */
public class Student {
    String name;
    int age;

    //定义构造方法

    public Student(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Student() {

    }


    public void eat(){
        System.out.println("eat方法");
    }
    public  void play(int n){
        System.out.println("使用play方法"+n);
    }
}
